package com.kgc.cgprovider.controller;

import com.kgc.basic.util.ResponseMsg;
import com.kgc.cgapi.service.CGTHServiceApi;
import com.kgc.cgprovider.service.CGTHService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

@RestController
public class CGTHController implements CGTHServiceApi {

    private Logger logger = LoggerFactory.getLogger(CGTHController.class);

    @Resource
    private CGTHService cgthService;

    @Override
    public ResponseMsg getCGTHPage(Map<String, Object> map) {
        ResponseMsg responseMsg = cgthService.getCGTHPage(map);
        return responseMsg;
    }

    @Override
    public ResponseMsg addCGTH(Map<String, Object> map) {
        ResponseMsg responseMsg = cgthService.addCGTH(map);
        return responseMsg;
    }

    @Override
    public ResponseMsg modiCGTH(Map<String, Object> map) {
        ResponseMsg responseMsg = cgthService.modiCGTH(map);
        return responseMsg;
    }

    @Override
    public ResponseMsg getCGTH(Map<String, Object> map) {
        ResponseMsg responseMsg = cgthService.getCGTH(map);
        return responseMsg;
    }

    @Override
    public ResponseMsg updateCGTH(Map<String, Object> map) {
        ResponseMsg responseMsg = cgthService.updateCGTH(map);
        return responseMsg;
    }


}
